# 应用ID
APP_ID = '2016101100664652'

# 是否是沙箱环境
DEBUG = True

# 签名算法 RSA or RSA2
SIGN = "RSA2"


# 网关
if DEBUG:
    GATEWAY = 'https://openapi.alipaydev.com/gateway.do?'
else:
    GATEWAY = 'https://openapi.alipay.com/gateway.do?'


# 应用私钥
app_private_key_string = """-----BEGIN RSA PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCnVFn2dhpWcxWRDEtFS/0HSVxv9hTQSltG3HfDTZH4A1NJnRCmYCxh8OJGRW6mll69cKkq36x5F6UR/i1LRXkF2ex+IfyQzM8iv4FexyNpd/RFMLia9loxP/JornsxwEvY1xkOFdtkQTcRVxwhqsrZXrNZPU/bjJa04SJ/IbtB344hb95sjqAOgdQ25404bIOp+Ra2b1nO51J1BpnQ23ZsyRhVdy0ibX6yns0vz+kHQoQEAEZs1OMi9NHtDYbznlhfx/412s5vmkGlvGx5qrSOlODNuCcv9nqrtG+GHBY0w/iJUSrwSZcwbAGgsrjr2SqZaJClCRJRUZ/U9KlxmvlfAgMBAAECggEARLmDXZOyS5Fm6TUYcTS9jtGVsrJqaAYyKQ+B7OgeLLQI8DIfVYYolG1gMiZwROF7tejgwigt6WpJtPMlXUYCZ+HSnReOaVaFOKtZEjlOFRJcdFKHb7YA4zt1b4NCO/PT8xKdSsi1XB7g5DFX74f7Wn3nwZ5J/01l1JKnHXoYM/xV+b6tQTOqc7tm7ZC+O4yYWBcrVo6zRGubFDrEzVN4ICvhcCN3R0k/bbMtkRlAuBEaStx/n4Chy3pJu5ExVnCCd3NQY6Mec7dqN+/K685ekAbPQ48v2h7fzmFDXEhFEnlzXdwJQtLspwVPIGx6mgks48N2GIQOrNJRrGBdmwMQSQKBgQD2u2DKczo2r5POwMaxHfngGuGzW2P/1h8ik4tKICaOgZigUZUg01lYf09O92YPZ/lF85NB4wnXAD+i8kA5xtaURCilA3Aqu+fSQsAwXqlgiHEhQHh9cdhXcs3BUzSLZ/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MkYVXctIm1+sp7NL8/pB0KEBABGbNTjIvTR7Q2G855YX8f+NdrOb5pBpbxseaq0jpTgzbgnL/Z6q7RvhhwWNMP4iVEq8EmXMGwBoLK469kqmWiQpQkSUVGf1PSpcZr5XwIDAQAB
-----END PUBLIC KEY-----
"""